package com.usian.ai.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 数字人面试官表
 * </p>
 *
 * @author
 * @since 2024-10-04
 */

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("interviewer")
public class Interviewer implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(type = com.baomidou.mybatisplus.annotation.IdType.AUTO)
    @TableField
    private Integer id;

    /**
     * 数字人面试官的名称
     */
    @TableField
    private String aiName;

    /**
     * 数字人形象图照片
     */
    @TableField
    private String image;

    @TableField
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedTime;


    public Interviewer(String aiName, String image) {
        this.aiName = aiName;
        this.image = image;
    }
    public Interviewer(Integer id, String aiName, String image) {
        this.id = id;
        this.aiName = aiName;
        this.image = image;
    }
}
